import {I18Parse} from '@lowcode/jpaas-common-lib';
import templateLang from '../../../../../locales/lang/impl/bpm/bpmDefaultTemplateLang';
let lang = templateLang.bpmDefaultTemplate;
let i18n=function (langKey,text) {
    return I18Parse.getI18Val(lang,langKey, text)
}

let templateTypes=[{label:i18n('option.addSign','加签'),value:"addsign"},
    {label:i18n('option.agent','代理给'),value:"agent"},
    {label:i18n('option.agentTo','收到代理'),value:"agentTo"},
    {label:i18n('option.approve','审批'),value:"approve"},
    {label:i18n('option.reject','驳回'),value:"back"},
    {label:i18n('option.rejectToStart','驳回发起人'),value:"backToStart"},
    {label:i18n('option.commu','沟通'),value:"commu"},
    {label:i18n('option.cc','抄送'),value:"copy"},
    {label:i18n('option.forward','转发'),value:"forward"},
    {label:i18n('option.urge','催办'),value:"remind"},
    {label:i18n('option.replyComm','回复沟通'),value:"replycommu"},
    {label:i18n('option.revoke','撤销'),value:"revoke"},
    {label:i18n('option.transfer','转办'),value:"transfer"},
    {label:i18n('option.flow','流转'),value:"transferRoam"},
    // {label:"催办",value:"urge"},
    {label: i18n('option.track','跟踪'),value:"tracked"}];

let templateTypeMap={};
templateTypes.forEach(item=>{
    templateTypeMap[item.value]=item.label;
})

export { templateTypes ,templateTypeMap};